package com.crm.aftersale.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_goods")
public class OrderGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer orderId;

    private Integer goodId;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 总金额
     */
    private Integer totalMoney;

    /**
     * 换货商品id
     */

   private Integer regoodId;
    /**
     * 换货原因
     */
   private String regoodReason;
    /**
     * 退货 换货状态
     */
   private String regoodState;

   @TableField(exist = false)
   private Goods goods;

}
